body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#but {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 60px;
  padding: 0px 4px 4px 0px;
}

#but::before {
  content: '';
  display: inline-block;
  width: 100%;
  height: 35%;
  background-color: black;
  border: 2px solid;
  transition-duration: 0.2s;
  border-radius: 5px;
  transform: translateZ(-1px);
  position: relative;
  left: 0px;
  top: 50%;
  box-shadow: 2px 3px 5px 4px rgb(0, 0, 0, 0.5);
}

#but::after {
  content: 'Button';
  display: inline-block;
  text-align: center;
  line-height: 180%;
  width: 100%;
  height: calc(100% - 35% - 10px);
  background-color: white;
  border-radius: 5px;
  border: 2px solid black;
  transition-duration: 0.2s;
  position: relative;
  left: 0px;
  top: -30%;
  cursor: pointer;
  box-shadow: 0px 4px 5px 5px rgb(0, 0, 0, 0.5);
}

#but:hover::after {
  top: -35%;
}

#but:active::after {
  top: -15%;
  box-shadow: 2px 3px 5px 4px rgb(0, 0, 0, 0);
}

#but:active::before {
  box-shadow: 2px 3px 5px 4px rgb(0, 0, 0, 0);
}